SRCS = $(wildcard *.cpp)
TARGETS = $(foreach src, $(SRCS), $(basename $(src)).exe)

CXX = g++

.PHONY: all clean

all : $(TARGETS)

$(TARGETS) : %.exe : %.o
	$(CXX) -o $@ $<

clean:
	-rm $(TARGETS) *.o
